/*********************
* Author:Dzlua
* QQ:505544956
* time:2016/12/09
*/
#ifndef __EDUI_LUACURSOR_H__
#define __EDUI_LUACURSOR_H__

#include "../interface/ICursor.h"
#include "LuaHelper.h"

#ifdef EDUI_USE_LUAPLUS

EDUI_NAMESPACE_BEGIN

class LuaCursor : public LuaClassBase
{
public:
#ifdef EDUI_TEST_NEW_DELETE
    static int m_newdeleteNum;
    static int _GetNewDeleteNum();
#endif
    LuaCursor(ICursor* cursor);
    virtual ~LuaCursor();
    static void* GetInterface(void* data);
    virtual void Release();
    virtual void* GetCObj();
    static void Register(LuaState *L);
public:
protected:
    ICursor* m_cobj;
};

EDUI_NAMESPACE_END

#endif
#endif